package com.urea.web.controller.urea;

import com.urea.common.core.domain.AjaxResult;
import com.urea.system.service.IHomeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 类描述:
 *
 * @author fangXu
 * @version 1.0
 * @date 2023/8/17 16:26
 */
@RestController
@RequestMapping("/home")
@Api(tags = "后台首页接口")
public class HomeController {


    @Autowired
    private IHomeService homeService;

    @GetMapping("/homeStatistics")
    @ApiOperation("首页信息")
    public AjaxResult homeStatistics(){
        return AjaxResult.success(homeService.homeStatistics());
    }

}
